package com.cly.feign.hystrix;

import com.cly.domain.Prod;
import com.cly.feign.IndexImgProdFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class IndexImgProdFeignHystrix implements IndexImgProdFeign {

    /**
     * 远程调用根据商品id查询商品对象
     *
     * @param prodId
     * @return
     */
    @Override
    public Prod getProdById(Long prodId) {
        log.error("远程调用根据商品id查询商品对象失败，商品id{}", prodId);
        return null;
    }
}